<div class="register-box">
    <div class="register-logo">
        <img src="./assets/logo.jpeg" alt="logo">
    </div>
    <div class="register-info-line">
        <label>帐号</label>
        <input type="text" PLACEHOLDER="请输入邮箱/电话" [(ngModel)]="user.name" required>
    </div>
    <div class="register-info-line">
        <label>密码</label>
        <input type="password" placeholder="6~16位" [(ngModel)]="user.password" required>
    </div>
    <p class="register-msg">
        <i *ngIf="msg">提示 : 请完善信息</i>
    </p>
    <div class="register-info-line">
        <button class="register-btn" (click)="register()">注册</button>
    </div>
    <a routerLink="/login" class="register-to-login">← 登录</a>
</div>